import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../components/views/index/index.vue'
import searchAll from "@/components/views/index/tv/searchall/SearchAll.vue";
import discover from "@/components/views/discover/discover.vue";
import profile from "@/components/views/profile/profile.vue";
import vip from "@/components/views/vip/vip.vue";
Vue.use(VueRouter)

const routes = [
    {
      path: '/',
        redirect: '/index'
    },
    {
        path: '/index',
        name: 'index',
        component: index,
    },
    {
        path: '/searchall',
        name: 'searchall',
        component: searchAll
    },
    {
        path: '/discover',
        name: 'discovers',
        component: discover
    },
    {
        path: '/profile',
        name: 'profile',
        component: profile
    },
    {
        path: '/vip',
        name: 'vip',
        component: vip
    }
]

const router = new VueRouter({
    mode: 'hash',
    // base: process.env.BASE_URL,
    routes
})

export default router
